package com.koc.robot;

public class BlockCommon {
	
	public static float GRID_DARK_FACTOR = 0.7f;
	
	public static int TILES_COLORS[] = new int[]
			{
				android.graphics.Color.WHITE,
				android.graphics.Color.BLACK,
				android.graphics.Color.RED,
				android.graphics.Color.GREEN,
				android.graphics.Color.MAGENTA,
			};
	
	public static int SPECIAL_COLORS[] = new int[]
			{
				android.graphics.Color.BLUE,
				android.graphics.Color.YELLOW,
			};
	
	public static int BLOCK_COLORS[][] = new int[][]
			{
			{},
			{Util.toColor(220, 220, 220), Util.toColor(220, 220, 220), Util.toColor(220, 220, 220),
				Util.toColor(220, 220, 220), Util.toColor(220, 220, 220)},
			{Util.toColor(220, 0, 0), Util.toColor(220, 0, 0), Util.toColor(220, 0, 0),
				Util.toColor(220, 0, 0), Util.toColor(220, 0, 0)},
			{Util.toColor(0, 220, 0), Util.toColor(0, 220, 0), Util.toColor(0, 220, 0),
				Util.toColor(0, 220, 0), Util.toColor(0, 220, 0),},
			{Util.toColor(190, 206, 248), Util.toColor(190, 206, 248), Util.toColor(190, 206, 248),
				Util.toColor(190, 206, 248), Util.toColor(190, 206, 248),},
			};
	
	public static int GRID_COLORS[][];
	
	static
	{
		GRID_COLORS = new int[BLOCK_COLORS.length][2];
		for(int i = 1; i < GRID_COLORS.length; ++i)
		{
			for(int j = 0; j < 2; ++j)
			{
				int color = (int)(BLOCK_COLORS[i][BLOCK_COLORS[1].length - j - 1] * GRID_DARK_FACTOR);
				GRID_COLORS[i][j] = color | 0xFF000000;
			}
		}
	}
}
